﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace www.pages.sys
{
    public partial class preview : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {
                this.hid_Project.Value = Request["project"] ?? "0";
                this.hid_docs.Value = Request["docs"] ?? "0";

                ShowDocPreview();
            }
        }


        private void ShowDocPreview() {
            this.list_docs.DataSource = Core.Core.DocumentUtil.GetList(Convert.ToInt32(hid_Project.Value), hid_docs.Value);
            list_docs.DataBind();
        }
    }
}